package cn.hl.mapper;

import cn.hl.domain.MovieTicket;
import cn.hl.dto.MovieTicketDto;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hulan
 * @since 2022-09-25
 */
public interface MovieTicketMapper extends BaseMapper<MovieTicket> {

    void addUserMovie(MovieTicketDto movieTicketDto);

    void updateUserMovie(MovieTicketDto movieTicketDto);

    List<MovieTicketDto> findMoiveTicket(Long id);


    MovieTicketDto findMovieTicketById(Long userId, Long movieTicketId);
}
